-- GENERATED SPELL FOR [Rageclaw] --


function spell0_7318(pUnit, Event) --@Bear Form,Self--
pUnit:FullCastSpellOnTarget(7090,pUnit)
pUnit:RegisterEvent('Sorts_7318', 0, 1)
end

function spell1_7318(pUnit, Event) --@Maul,n/a--
pUnit:FullCastSpellOnTarget(12161,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7318', 599, 1)
end

function Sorts_7318(pUnit, Event)
local choix_sorts_7318 = math.random(0, 1)
if choix_sorts_7318 == 0 then
pUnit:RegisterEvent('spell0_7318', 1, 1)
end
if choix_sorts_7318 == 1 then
pUnit:RegisterEvent('spell1_7318', 1, 1)
end
end

function mob7318_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7318', math.random(1500, 3000), 1)
end

function mob7318_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7318_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7318_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7318, 1, 'mob7318_Action')
RegisterUnitEvent(7318, 2, 'mob7318_Leave')
RegisterUnitEvent(7318, 3, 'mob7318_Kill')
RegisterUnitEvent(7318, 4, 'mob7318_Die')
